package com.property.business.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 业务-资讯（公告）
 * </p>
 *
 * @author 刘煦煌
 * @since 2023-11-24
 */
@Getter
@Setter
@TableName("biz_information")
@ApiModel(value = "Information对象", description = "业务-资讯（公告）")
public class Information implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("标题")
    private String name;

    @ApiModelProperty("封面")
    private String cover;

    @ApiModelProperty("类型（1物业公告 2小区规约 3业委会）")
    private Integer type;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;


}
